<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

use yii\helpers\Html;

$this->title = $name;
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <style>
        *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:500px;min-height:180px;padding:30px 0 15px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
    </style>
</head>
<body>
<?php $this->beginBody() ?>                      

<div style="width:100%;margin-top:30%">
    <p><b><?= Html::encode($this->title) ?>.</b></p>
    <?php if(empty($message)): ?>
        <p>Sorry, the page you are looking for could not be found.</p>
    <?php else: ?>
        <p><?= nl2br(Html::encode($message)) ?></p>
    <?php endif;?>
</div>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
</html>
